package 类加载器;

import sun.misc.Launcher;

import java.net.URL;
import java.util.Properties;

/**
 * @Author: ideaAdmin
 * TODO: 引导类加载器和 扩展类加载器可以加载的类库
 * Date: 2022/2/12:13:29
 * Description:
 */

public class ClassLoadArea {
    public static void main(String[] args) {
//        System.out.println("引导类加载器");
//        //获得引导类加载器加载的类库
//        URL[] urLs = Launcher.getBootstrapClassPath().getURLs();
//        for (URL element:urLs){
//            System.out.println(element.toExternalForm());
//        }

        System.out.println("扩展类加载器");
        String exDirs = System.getProperty("java.ext.dirs");
        for(String path:exDirs.split(";")){
            System.out.println(path);
        }
    }
}
